package com.probox.common.entity.vo.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户信息、等级关系映射对象 customer_level_info
 *
 * @author zsy
 * @date 2021-05-27
 */
@Data
@ApiModel(description="客户等级关系映射vo类")
public class CustomerLevelInfoVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 客户等级关系id
     */
    @ApiModelProperty(value = "客户等级关系id")
    @TableId(value = "LEVEL_INFO_ID", type = IdType.AUTO)
    private Long levelInfoId;

    /**
     * 客户ID
     */
    @ApiModelProperty(value = "客户ID")
    @Excel(name = "客户ID")
    private Long customerUid;


    /**
     * 等级ID
     */
    @ApiModelProperty(value = "等级ID")
    @Excel(name = "等级ID")
    private Long levelUid;

    /**
     * 等级名称
     */
    @ApiModelProperty(value = "等级名称")
    @Excel(name = "等级名称")
    private String levelName;

    /**
     * 客户模式
     */
    @ApiModelProperty(value = "客户模式",required = true)
    @Excel(name = "客户模式")
    private String customerPattern;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Long score;


    //等级信息
    private CustomerLevelVo customerLevelVo;

}
